import request from '@/utils/request'

// 查询料仓列表
export function listStockbin(query) {
  return request({
    url: '/mes/Stockbin/list',
    method: 'get',
    params: query
  })
}

// 查询料仓详细
export function getStockbin(id) {
  return request({
    url: '/mes/Stockbin/' + id,
    method: 'get'
  })
}

// 新增料仓
export function addStockbin(data) {
  return request({
    url: '/mes/Stockbin',
    method: 'post',
    data: data
  })
}

// 修改料仓
export function updateStockbin(data) {
  return request({
    url: '/mes/Stockbin',
    method: 'put',
    data: data
  })
}

// 删除料仓
export function delStockbin(id) {
  return request({
    url: '/mes/Stockbin/' + id,
    method: 'delete'
  })
}

// 导出料仓
export function exportStockbin(query) {
  return request({
    url: '/mes/Stockbin/export',
    method: 'get',
    params: query
  })
}